package com.buaa.aimall.Utils.Enum;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum PaymentStatus {
    PAYING("0", "PAYING"),          // 支付中
    SUCCESS("1", "SUCCESS"),        // 支付成功
    FAILED("2", "FAILED"),          // 支付失败
    CANCELLED("3", "CANCELLED");    // 取消支付

    @EnumValue
    public final String code;

    @JsonValue
    public final String name;
}
